﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.Course>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    EditCourse
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        EditCourse</h2>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>
    <% using (Html.BeginForm())
       { %>
    <table class="courseViewTable" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 20%; vertical-align: top;">
                <% Html.RenderPartial("CourseEditSectionMenu", Model); %>
            </td>
            <td style="width: 80%">
                <%: Html.ValidationSummary(true) %>
                <fieldset>
                    <legend>Course</legend>
                    <div class="editor-label">
                        <%: Html.LabelFor(model => model.CourseName) %>
                    </div>
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.CourseName, new { @class = "longTextField" })%>
                        <%: Html.ValidationMessageFor(model => model.CourseName) %>
                    </div>
                    <div class="editor-label">
                        <%--<a href="~/Views/Course/Create.aspx">CreateTest.aspx</a>--%>
                        <%: Html.LabelFor(model => model.CourseDesciption) %>
                    </div>
                    <div class="editor-field">
                         <%: Html.TextArea("CourseDesciption", Model.CourseDesciption, new { @class = "cdTextArea" })%>
                        <%: Html.ValidationMessageFor(model => model.CourseDesciption) %>
                    </div>
                    <p>
                        <%: Html.ActionLink("Discard changes", "Index") %>
                        <input type="submit" value="Save and continue to sections" />
                    </p>
                </fieldset>
            </td>
        </tr>
    </table>
    <% } %>
</asp:Content>
